<?php

namespace app\controller;

use app\service\AgreementService;
use support\Request;

class AgreementController
{
    public function index(Request $request,$id): \support\Response
    {
        try {
            //获取协议信息
            $info=AgreementService::getDetails($id);
            return view('agreement/index',$info);
        }catch (\Throwable $e){
            return view('index/404');
        }
    }

}